package cn.cas.mango.Db;

import lombok.Data;

import java.util.Date;

@Data
public class Keywords2Db {
  private KeywordsCast keywordsCast;

  public Keywords2Db(KeywordsCast keywordsCast) {
    this.keywordsCast = keywordsCast;
  }

  public Keywords2Db(String keyword, String firstId, Date firstDate) {
    keywordsCast = new KeywordsCast(keyword, new Keywords2IdDate(firstId, firstDate));
  }

  public void add(String id, Date date) {
    keywordsCast.add(new Keywords2IdDate(id, date));

  }
}
